package com.duzq.controller;

import com.duzq.entity.Order;
import com.duzq.entity.OrderExt;
import com.duzq.entity.UserExt;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 订单
 * @author duzq
 * @date 2021-03-25 10:06:16
 */
@RestController
public class OrderController {

    /**
     * 查询订单
     * @return
     */
    @RequestMapping("/getOrder")
    public Order getOrder() {
        UserExt userExt = new UserExt();
        userExt.setStatusExt(10);

        OrderExt orderExt = new OrderExt();
        orderExt.setExtStatus(11);
        orderExt.setUserExt(userExt);

        Order order = new Order();
        order.setStatus(10);
        order.setOrderExt(orderExt);
        return order;
    }
}
